Introduce GSEAL() macro.
authorTim Janik <timj@src.gnome.org>
Fri, 20 Jun 2008 10:48:22 +0000 (10:48 +0000)
committerTim Janik <timj@src.gnome.org>
Fri, 20 Jun 2008 10:48:22 +0000 (10:48 +0000)
* configure.in: define GSEAL() when generating gdkconfig.h

svn path=/trunk/; revision=20478

configure.in

index 0ad858c7b5b64c63127d5b5bd389fcf93d25954b..a47670ffd6401477c32279de91baf28f149a5b86 100644 (file)
@@ -1901,6 +1901,15 @@ AC_CONFIG_COMMANDS([gdk/gdkconfig.h], [
 extern "C" {
 #endif /* __cplusplus */
 
+#ifndef GSEAL
+/* introduce GSEAL() here for all of Gdk and Gtk+ without the need to modify GLib */
+#  ifdef GSEAL_ENABLE
+#    define GSEAL(ident)      _g_sealed__ ## ident
+#  else
+#    define GSEAL(ident)      ident
+#  endif
+#endif /* !GSEAL */
+
 _______EOF
 
        cat >>$outfile <<_______EOF